package com.mew.auc.config;

import com.alibaba.nacos.api.config.ConfigType;
import com.alibaba.nacos.api.config.annotation.NacosConfigurationProperties;
import com.alibaba.nacos.api.config.annotation.NacosProperty;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

/**
 * lobby:
 *    key: 1908123456789099
 *    code: TG_202109098848
 * version:
 *   lobby: 1
 *   error: 1
 * host:
 *    url: http://222.186.170.57:8555/chfs/shared/OverSeaFramework/
 * wx:
 *    id: wxid_value
 *    secret : wxSecret_value
 *
 * @Date 2020/11/6 0006
 **/
@NacosConfigurationProperties(dataId = "mew-game-config.yaml", type = ConfigType.YAML, autoRefreshed = true)
@Data
@ToString
@NoArgsConstructor
public class MewGameConfig {

    @NacosProperty(value = "lobby.key")
    private String lobbyKey;

    @NacosProperty(value = "lobby.code")
    private String lobbyCode;

    @NacosProperty(value = "lobby.rate")
    private String lobbyRate;

    @NacosProperty(value = "version.lobby")
    private int versionLobby;

    @NacosProperty(value = "version.error")
    private int versionError;

    @NacosProperty(value = "host.url")
    private String hostUrl;

    @NacosProperty(value = "wx.id")
    private String wxId;

    @NacosProperty(value = "wx.secret")
    private String wxSecret;



}
